<%-- 
    Document   : login
    Created on : 2014-8-7, 9:49:22
    Author     : coolwind
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="description" content="">
        <meta name="author" content="">
        <link href="<c:url value="/js/libs/twitter-bootstrap/css/bootstrap.min.css"/>" rel="stylesheet"/>
        <link href="<c:url value="/common/css/common.css"/>" rel="stylesheet"/>
        <link href="<c:url value="/common/css/login.css"/>" rel="stylesheet"/>
        <script type="text/javascript" src="<c:url value="/js/libs/jquery/jquery.min.js"/>"></script>
        <script type="text/javascript" src="<c:url value="/js/libs/twitter-bootstrap/js/bootstrap.min.js"/>"></script>
        <title>用户登录</title>
    </head>
    <body>
        <c:import url="/common/header"/>
        <div class="login-container">
            <div class="login-area">
                <sf:form method="post" commandName="loginCommand" cssClass="form-login">
                    <h4>登录</h4>
                    <sf:input path="userEmail" cssClass="form-control" placeholder="邮箱地址" required="true" type="email"/>
                    <sf:password path="password" cssClass="form-control" placeholder="密码" required="true"/>
                    <sf:checkbox path="status" label="一月内免登录"/>
                    
                    <c:if test="${!empty error}">
                        <div class="alert alert-warning alert-dismissible fade in" role="alert">
                            <button type="button" class="close" data-dismiss="alert">
                                <span aria-hidden="true">&times;</span>
                                <span class="sr-only">Close</span>
                            </button>
                            <strong>${error}</strong>
                        </div>
                    </c:if>

                    <input type="submit" value="登录" class="btn btn-block btn-primary" />
                    <a href="" class="login-register">注册</a>
                    <a href="" class="login-forget">忘记密码？</a> 
                    <div class="clear"></div>
                </sf:form>
            </div>
        </div>
        <c:import url="/common/footer"/>
    </body>
</html>
